﻿@model IEnumerable<Link>
@if (Model != null && Model.Count() > 0) {
	<menu>
		@foreach (Link link in Model) {

			<li @(link.Selected ? "class=\"selected\"".AsHtml() : null)>
				@if (Request.Path == link.Url)
				{
					@link.Text
				}
				else
				{
					@link.ToHtml()
				}
			</li>
		}
	</menu>
}